namespace SimpleWebServices.Web.Mvc
{
    using System;
    using System.Web.Routing;
    using SimpleWebServices.Data;
    using SimpleWebServices.Web.Routing;
    using Xunit;

    public sealed class IControlResourceOfTFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IControlResource<IRecordDummy>).IsInterface);
        }

        [Fact]
        public void is_IControlResource()
        {
            Assert.True(typeof(IControlResource).IsAssignableFrom(typeof(IControlResource<IRecordDummy>)));
        }

        [Fact]
        public void IControlResourceOfT_Converter_get()
        {
            try
            {
                IConvertUri value = (new IControlResourceDummy<IRecordDummy>() as IControlResource<IRecordDummy>).Converter;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IControlResourceOfT_Register_RouteCollection()
        {
            try
            {
                (new IControlResourceDummy<IRecordDummy>() as IRegisterRoutes).Register(null as RouteCollection);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}